domain_setmaxmem takes an int, not a long, for the maxmem_kb parameter. The
authoremellor@ewan <emellor@ewan>
Tue, 20 Sep 2005 16:29:57 +0000 (17:29 +0100)
committeremellor@ewan <emellor@ewan>
Tue, 20 Sep 2005 16:29:57 +0000 (17:29 +0100)
commit5a9ab7acc110354afeb360f5196ba2497b03345c
tree1d7c82cc9179a630de9d258f2b770f4c902297f7
parent2a9831d0a872c6a5a9158a21be12e4f7041e059a
domain_setmaxmem takes an int, not a long, for the maxmem_kb parameter.  The
underlying xc_domain_setmaxmem already took an unsigned int, and
PyArg_ParseTupleAndKeywords call was only parsing an int, so there is no way
that longer values would get through here in any case.  Fixing the documentation
and the local variable is the best solution, until someone decides that we need
to support maxmem values greater than 2TiB.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/lowlevel/xc/xc.c